package com.ruoyi.topic.domain;

import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 热搜主题对象 hs_topic
 * 
 * @author lzk
 * @date 2025-06-17
 */
@Schema(description = "热搜主题对象")
public class HsTopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 主键 */
    @Schema(title = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 热搜编号 */
    @Schema(title = "热搜编号")
    @Excel(name = "热搜编号")
    private String topicCode;

    /** 热搜标题 */
    @Schema(title = "热搜标题")
    @Excel(name = "热搜标题")
    private String title;

    /** 热度值 */
    @Schema(title = "热度值")
    @Excel(name = "热度值")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long heatValue;

    /** 原始链接 */
    @Schema(title = "原始链接")
    @Excel(name = "原始链接")
    private String originalUrl;

    /** 创建者 */
    @Schema(title = "创建者")
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    @Excel(name = "创建时间")
    private LocalDate createdTime;

    /** 更新者 */
    @Schema(title = "更新者")
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    @Excel(name = "更新时间")
    private LocalDate updatedTime;

    /** 删除标志（0代表存在 2代表删除） */
    @Schema(title = "删除标志（0代表存在 2代表删除）")
    private String delFlag;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setTopicCode(String topicCode) 
    {
        this.topicCode = topicCode;
    }

    public String getTopicCode() 
    {
        return topicCode;
    }


    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }


    public void setHeatValue(Long heatValue) 
    {
        this.heatValue = heatValue;
    }

    public Long getHeatValue() 
    {
        return heatValue;
    }


    public void setOriginalUrl(String originalUrl) 
    {
        this.originalUrl = originalUrl;
    }

    public String getOriginalUrl() 
    {
        return originalUrl;
    }


    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }


    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("topicCode", getTopicCode())
            .append("title", getTitle())
            .append("heatValue", getHeatValue())
            .append("originalUrl", getOriginalUrl())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
